
package za.ac.cput.peterjohn.DesignPatternPrincipals.creational.AbstractFactoryPattern.Factory;


public class AbstractFactory 
{
    public static SpeciesFactory speciesFactory = null;

    public static SpeciesFactory getSpeciesFactory(String type) {
       if("mammel".equals(type))
           speciesFactory = new MammelFactory();
       else
           speciesFactory = new ReptileFactory();
       
       return speciesFactory;
    }
    
}
